test-app
目的 Purpose
Runs all Grails unit and integration tests and generates reports. The command returns appropriate response codes for embedding with continuous integration servers.使用例 Examples
grails test-app grails test-app Foo grails test-app Foo Bar
詳細 Description
使用方法: Usage:
grails [environment]* test-app [names]*
Fired Events:
StatusFinal
- When the test cycle completes
test/unit
and test/integration
directories. By default all tests are executed, but you can specify the names of the tests (without the "Tests" or other test type suffix) as argument to the command:grails test-app Foo grails test-app Foo Bar
FooTests.groovy
whilst the second will execute FooTests.groovy
and BarTests.groovy
if they exist.Tests can also use the suffix ofYou can also choose to only run the unit or integration tests:Test
instead ofTests
.
grails test-app unit: grails test-app integration:
grails test-app -rerun